package com.itlong.cloud.app.dao;

import com.itlong.cloud.POJO.DTO.app.old.AppOldDeviceRecordDto;
import com.itlong.cloud.POJO.PO.TimeTaskDevicePassRecordPO;
import com.itlong.cloud.abstracts.IAbstractBaseDao;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <desc>
 *     旧版APP_用户通行记录
 * </desc>
 * @createDate 2017/11/10
 */
@Mapper
@Repository
public interface IAppOldDeviceRecordDao extends IAbstractBaseDao<TimeTaskDevicePassRecordPO>{

    /**
     * <desc>
     *     旧版APP_查询用户通行记录
     * </desc>
     * @param params
     * @return
     * @author cuiduanwu
     * @createDate 2017/11/10
     */
    List<AppOldDeviceRecordDto> getUserRecord(Map<String,Object> params);

    /**
     * <desc>
     *     旧版APP_查询用户通行记录是否已上传
     * </desc>
     * @param appOldDeviceRecordDto
     * @return
     */
    int checkDeviceRecord(AppOldDeviceRecordDto appOldDeviceRecordDto);

    /**
     * <desc>
     *     旧版APP_批量保存用户通行记录
     * </desc>
     * @param list
     * @return
     */
    int saveBatch(List<AppOldDeviceRecordDto> list);




}
